home *** CD-ROM | disk | FTP | other *** search
/ Champak 130 / Vol 130.iso / games / target_s.swf / scripts / skeleton.as < prev    next >
Encoding:
Text File  |  2008-11-13  |  4.6 KB  |  197 lines

  1. package
  2. {
  3.    import adobe.utils.*;
  4.    import flash.accessibility.*;
  5.    import flash.display.*;
  6.    import flash.errors.*;
  7.    import flash.events.*;
  8.    import flash.external.*;
  9.    import flash.filters.*;
  10.    import flash.geom.*;
  11.    import flash.media.*;
  12.    import flash.net.*;
  13.    import flash.printing.*;
  14.    import flash.system.*;
  15.    import flash.text.*;
  16.    import flash.ui.*;
  17.    import flash.utils.*;
  18.    import flash.xml.*;
  19.    
  20.    [Embed(source="/_assets/assets.swf", symbol="skeleton")]
  21.    public dynamic class skeleton extends MovieClip
  22.    {
  23.        
  24.       
  25.       public var legL1:MovieClip;
  26.       
  27.       public var legL2:MovieClip;
  28.       
  29.       public var neck:MovieClip;
  30.       
  31.       public var armR1:MovieClip;
  32.       
  33.       public var armR2:MovieClip;
  34.       
  35.       public var torso2:MovieClip;
  36.       
  37.       public var torso1:MovieClip;
  38.       
  39.       public var footR:MovieClip;
  40.       
  41.       public var legR2:MovieClip;
  42.       
  43.       public var handL:MovieClip;
  44.       
  45.       public var armL1:MovieClip;
  46.       
  47.       public var armL2:MovieClip;
  48.       
  49.       public var handR:MovieClip;
  50.       
  51.       public var legR1:MovieClip;
  52.       
  53.       public var footL:MovieClip;
  54.       
  55.       public var head:MovieClip;
  56.       
  57.       public var board:MovieClip;
  58.       
  59.       public function skeleton()
  60.       {
  61.          super();
  62.          addFrameScript(0,frame1,17,frame18,18,frame19,19,frame20,32,frame33,37,frame38,47,frame48,50,frame51,53,frame54,60,frame61,70,frame71,80,frame81,90,frame91,103,frame104,115,frame116,120,frame121,121,frame122,128,frame129,132,frame133,135,frame136,138,frame139,142,frame143);
  63.       }
  64.       
  65.       internal function frame143() : *
  66.       {
  67.          gotoAndStop("stand");
  68.       }
  69.       
  70.       internal function frame71() : *
  71.       {
  72.          gotoAndPlay("grind_50-50");
  73.       }
  74.       
  75.       internal function frame81() : *
  76.       {
  77.          gotoAndPlay("grind_tail");
  78.       }
  79.       
  80.       internal function frame91() : *
  81.       {
  82.          gotoAndPlay("grind_nose");
  83.       }
  84.       
  85.       internal function frame18() : *
  86.       {
  87.          gotoAndStop("stand");
  88.       }
  89.       
  90.       internal function frame1() : *
  91.       {
  92.          stop();
  93.          MovieClip(this.parent).player.pump = false;
  94.          board.wheels.visible = true;
  95.       }
  96.       
  97.       internal function frame19() : *
  98.       {
  99.          MovieClip(this.parent).sound.startSound("ollie",0,0,1,0);
  100.       }
  101.       
  102.       internal function frame104() : *
  103.       {
  104.          gotoAndStop("stand");
  105.       }
  106.       
  107.       internal function frame20() : *
  108.       {
  109.          MovieClip(this.parent).sound.setVolume("roll",0);
  110.          MovieClip(this.parent).vy = 10;
  111.          MovieClip(this.parent).player.contact = false;
  112.          MovieClip(this.parent).ollieInit = false;
  113.          if(MovieClip(this.parent).player.smode != 10)
  114.          {
  115.             MovieClip(this.parent).player.smode = 1;
  116.          }
  117.       }
  118.       
  119.       internal function frame116() : *
  120.       {
  121.          MovieClip(this.parent).player.airTime = false;
  122.       }
  123.       
  124.       internal function frame38() : *
  125.       {
  126.          if(MovieClip(this.parent).player.smode == 10)
  127.          {
  128.             gotoAndStop("winner");
  129.          }
  130.          else
  131.          {
  132.             gotoAndStop("stand");
  133.          }
  134.       }
  135.       
  136.       internal function frame33() : *
  137.       {
  138.          MovieClip(this.parent).sound.startSound("softland",0,0,1,0);
  139.       }
  140.       
  141.       internal function frame48() : *
  142.       {
  143.          MovieClip(this.parent).player.starFX(4,10,60,0);
  144.       }
  145.       
  146.       internal function frame129() : *
  147.       {
  148.          board.wheels.visible = false;
  149.       }
  150.       
  151.       internal function frame121() : *
  152.       {
  153.          gotoAndStop("stand");
  154.       }
  155.       
  156.       internal function frame51() : *
  157.       {
  158.          MovieClip(this.parent).player.starFX(4,10,80,0);
  159.       }
  160.       
  161.       internal function frame139() : *
  162.       {
  163.          gotoAndStop("stand");
  164.       }
  165.       
  166.       internal function frame136() : *
  167.       {
  168.          MovieClip(this.parent).player.airTime = false;
  169.          board.wheels.visible = true;
  170.       }
  171.       
  172.       internal function frame122() : *
  173.       {
  174.          stop();
  175.          board.wheels.visible = true;
  176.       }
  177.       
  178.       internal function frame54() : *
  179.       {
  180.          MovieClip(this.parent).player.starFX(4,10,100,0);
  181.       }
  182.       
  183.       internal function frame61() : *
  184.       {
  185.          stop();
  186.       }
  187.       
  188.       internal function frame133() : *
  189.       {
  190.          if(MovieClip(this.parent).key5)
  191.          {
  192.             gotoAndPlay(130);
  193.          }
  194.       }
  195.    }
  196. }
  197.